//
//  RefreshFooter.swift
//  Warehouse
//
//  Created by YEHWANG-iOS on 2023/8/4.
//

import Foundation
import MJRefresh

// 全局loading

class RefreshFooter: MJRefreshAutoNormalFooter {
    override func prepare() {
        super.prepare()
        self.setTitle("", for: .idle)
        self.setTitle("加载中...", for: .refreshing)
        self.setTitle("—  已加载完毕  —", for: .noMoreData)
        self.stateLabel?.font = UIFont.systemFont(ofSize: 12, weight: .regular)
        self.stateLabel?.textColor = .lightGray
        self.isRefreshingTitleHidden = false
        self.stateLabel?.isHidden = false
        self.triggerAutomaticallyRefreshPercent = 0.1
        // self.labelLeftInset = 6
    }
}
